<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $uid=session('uid');
        if(!$uid)
        {$this->error('登录已过期!',U("Home/Login/index"));}
        else{$this->display();}

    }
}